<script lang="ts" setup>
import { ref } from 'vue'
import dep from './useEvent.js'
import type { Form, Watcher } from './useEvent.js'

class watcher implements Watcher {
  update(form: Form) {
    console.log('radio', form)
  }
}
dep.add(new watcher())

const value = ref('c')
</script>
<template>
  <input type="radio" name="a" value="a" v-model="value">a</input>
  <input type="radio" name="b" value="b" v-model="value">b</input>
  <input type="radio" name="c" value="c" v-model="value">c</input>
</template>
